Ext.define('Dashboard.YesOrNoCmb', {
	extend : 'Ext.form.ComboBox',
	alias : 'widget.YesOrNoCmb',
	store : Ext.create('Ext.data.Store', {
		fields : [ 'abbr', 'name' ],
		data : [ {
			"abbr" : 1,
			"name" : "是"
		}, {
			"abbr" : 0,
			"name" : "否"
		} ]
	}),
	editable : false,
	queryMode : 'local',
	displayField : 'name',
	valueField : 'abbr',
	listeners : {
		'change' : function(cmb, newValue, oldValue, eOpts) {},
		'blur' : function() {
			console.log('YesOrNoCmb blur')
			var grid = this.findParentByType('grid');
			if (grid) {
				grid.updateReloadAble(true);
			}
		}
	}
});